package com.sskj.cndragon.bean;


import com.google.gson.annotations.SerializedName;
import com.sskj.cndragon.R;

import sskj.lee.appupdatelibrary.BaseVersion;

public class UpdataBean extends BaseVersion {

    @SerializedName("downUrl")
    private String addr;
    @SerializedName("appVersion")
    private String version;
    private String title;
    @SerializedName("details")
    private String content;
    private String uptime;
    private boolean uptype;

    public String getAddr() {
        return addr == null ? "" : addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getVersion() {
        return version == null ? "" : version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content == null ? "" : content;
    }

    @Override
    public String getUrl() {
        return addr;
    }

    @Override
    public int getNotifyIcon() {
        return R.mipmap.app_logo;
    }

    @Override
    public String getVersionName() {
        return version;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUptime() {
        return uptime == null ? "" : uptime;
    }

    public void setUptime(String uptime) {
        this.uptime = uptime;
    }

    public boolean isUptype() {
        return uptype;
    }

    public void setUptype(boolean uptype) {
        this.uptype = uptype;
    }

    @Override
    public boolean isMustUp() {
        return isUptype();
    }
}
